package com.gem.back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhhy
 * @since 2020-02-22
 */

@Data
public class AoaAttendsList implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "attends_id", type = IdType.AUTO)
    private Integer attendsId;

    private String attendsIp;

    private String attendsRemark;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date attendsTime; //考勤时间

    private Integer status;//状态（正常 0、迟到 1、早退 2、旷工 3）

    private Integer type;//类型（上班 1 、下班 2 、请假 3 、出差 4 ）

    private Integer attendsUserId;

    private String attendHmtime;//考勤时分

    private String weekOfday;//星期几

    private Double holidayDays;//请假天数

    private LocalDate holidayStart;//请假开始时间

    @TableLogic
    private String delFlag;

    @TableField(exist = false)
    private AoaUser aoaUser;

    @TableField(exist = false)
    private AoaTypeList aoaTypeLists;

    @TableField(exist = false)
    private AoaStatusList aoaStatusLists;

    @TableField(exist = false)
    private AoaDept aoaDept;

}
